import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class CardTest {
	
	@Before
	public void setUpBefore() {
	//System.out.println("Rozpoczecie testu");
	}

	@Test
	public void testCompareTo() {
		Card q=new Card (7,2);
		Card r=new Card (7,3);
		Card s=new Card (3,2);
		Card t=new Card (8,2);
		
		assertEquals(q.compareTo(r),0);
		assertEquals(q.compareTo(s),1);
		assertEquals(q.compareTo(t),-1);
	}
	
	@After
	public void tearDownAfter() {
	//System.out.println("Zakonczenie testu");
	}

}
